package com.mapper;

import com.pojo.Attention;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttentionMapper {
    //根据用户id来查询该用户关注的项目
    public List<Attention> selectAll(long userId);
    //取消关注
    public int deleteAtten(@Param("userId")long userId,@Param("projectId")long projectId);

    //增加关注
    public int addAtten(@Param("userId")long userId,@Param("projectId")long projectId);

    //根据用户Id和projectId来查询是否关注
    public Attention selectAtten(@Param("userId")long userId,@Param("projectId")long projectId);
}
